package org.jeasy.rules.tutorials.exception;

/**
 * 自定义异常
 * @author yang_gsh
 */
public class CustomException extends RuntimeException {
    private Integer code;

    public CustomException(Integer code, String message) {
        super(code + ":" + message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }
}
